<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>帮助提示</title>
    <script type="text/javascript" src="/script/mootools.js"></script>
    <script type="text/javascript" src="/script/mootools-more.js"></script>
    <link rel="stylesheet" type="text/css" href="/script/jspxnet-ui.css"/>
    <script type="text/javascript" src="/script/jspxnet.js"></script>
    <script type="text/javascript" src="/script/jspxnet-ui-roc.js"></script>
    <link href="skin/default/main.css" rel="stylesheet" type="text/css"/>
	<script>
	window.addEvent('domready', function() {
		
		  $('manageLogin').addEvent('click', function() {
			  var postParams = getFormJson('loginForm');
			  var posts = {
				  "version": "3.0",
				  "method":
					  {
						  "name": "login",
						  "params":postParams
					  }
			  };
			  new Request.ROC({'url':'/user/login.jwc','data':posts,
				  onSuccess:function(obj)
				  {
					  if (obj.success==1)
					  {
						  if (typeOf(window.parent)!='undefined'&&window.parent&&typeOf(window.parent.loginDialog)!='undefined'&&window.parent.loginDialog)
						  {
							  window.parent.loginDialog.close();
						  }
						  else window.location = '/devcenter/index.html';
					  } 
					  else
					  {
						    new JDialog.Alert({
                                    title: '提示信息',
                                    message: obj.message
                            }).show();
					  }
				  }
			  }).send();

		  });
	});
	</script>
</head>
<body>
<div class="loginWrapper">
    <div class="innWrapper">
        <div class="main">
        
            <div class="tit"><strong>开发中心登录</strong></div>
            <div class="con">
            <form id="loginForm" name="loginForm" method="post" >
				<span id="information"></span>
       
                <div class="fieldPanel">
                    <label>
                        <select id="field" name="field">
                        <option value="id">UID</option>
                        <option value="name" selected="selected">用户名</option>
                        <option value="mail">mail</option>
                        </select>
                    </label>
                    <input name="loginId" type="text" id="loginId" size="25" >
                    <span id="loginIdMsg">填写用户名称登录</span>
                </div>
				<div class="fieldPanel">
                    <label>密&nbsp;&nbsp;&nbsp;&nbsp;码&nbsp;&nbsp;&nbsp;:</label>
                    <input name="password" type="password" id="password" size="25">
                    <span id="passwordMsg">登录密码</span>
                </div>                
                <div class="inputPanel">
					<a id="manageLogin" class="jDefButton"><i class="jIcoUser"></i>登陆</a>
                </div>
            </form>
            </div>
            <div class="end"></div>
        </div>
        <div class="footer"></div>
    </div>
</div>
</body>
</html>